﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerGroupGroupList.aspx.cs" Inherits="YWTSSys.Web.MachineSys.YWTSWeb.gl.CustomerGroupGroupList" %>


<div class="pageContent" style="border-bottom:1px #B8D0D6 solid;border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid" >
    <div class="panelBar">
        <ul class="toolBar">
         <%if (string.IsNullOrEmpty(AreaName)){%>
              <% if (HasPower(YWTSSys.Web.Permission.新增))
              {%>
            <li><a class="edit" href="YWTSWeb/GL/CustomerGroupAddGroupArea.aspx" rel="CustomerGroupAddGroupArea" target="dialog" title="添加区域" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="200" ><span>添加区域</span></a></li>
          <%} %>

           <%} %>
          <%if (!string.IsNullOrEmpty(AreaName))
            { %>
          <% if (HasPower(YWTSSys.Web.Permission.新增))
             {%>
            <li><a class="edit" href="YWTSWeb/GL/CustomerGroupAddGroupArea.aspx?AreaName=<%=Server.UrlEncode(AreaName) %>" rel="CustomerGroupAddGroupArea" target="dialog" title="添加<%=AreaName %>分组" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="200" ><span>添加<%=AreaName%>分组</span></a></li>
          <%} %>
           <% if (HasPower(YWTSSys.Web.Permission.删除))
              {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=deletecustomerarea&AreaName=<%= Server.UrlEncode(AreaName) %>" target="ajaxTodo" title="确定要删除此<%=AreaName %>地区吗?"><span>删除<%=AreaName%>地区</span></a></li>
           <%} %>
           <%} %>

        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="99%" layouth="62">
        <thead>
            <tr  >          
                <th width="60" >所属地区</th>
                <th width="100" >
                    分组名称
                </th>
                <th width="100" >
                    分配业务员
                </th>  
                <th width="130" >
                    总客户数
                </th> 
                <th width="130" >
                    已打电话客户数
                </th>   
                <th width="120"> 操作</th>   
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr >                
				<td><%# Eval("上级分组")%></td>
				<td><%# Eval("分组标志")%></td>
                <td><%# Eval("realname")%></td>
                <td><%# Eval("CustomerCount")%></td>
                <td><%# Eval("TelCustomerCount")%></td>
                <td > <a class="btnDel" href="sysAjaxDone.ashx?ajaxmethod=deletecustomergroup&GroupName=<%# Server.UrlEncode(Eval("分组标志").ToString()) %>" target="ajaxTodo" title="确定要删除此<%# Eval("分组标志") %>分组吗?">删除 </a>
                
                    <a class="btnAssign" href="YWTSWeb/GL/CustomerGroupUpdateUser.aspx?AreaName=<%# Server.UrlEncode(Eval("分组标志").ToString()) %>" rel="CustomerGroupUpdateUser" target="dialog" title="更换<%# Eval("分组标志") %>业务员" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="200" >更换业务员</a>
                    
                    <a class="btnView" href="sysAjaxDone.ashx?ajaxmethod=resettelstatus&GroupName=<%# Server.UrlEncode(Eval("分组标志").ToString()) %>" target="ajaxTodo" title="确定对分组[<%# Eval("分组标志") %>]下的所有客户的电话重置吗?"  >电话重置</a>
               </td>  
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    
</div>
